package com.jnevision.replacecard.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.jnevision.util.DateUtil;

/**
 * <p>
 * 补卡申请
 * </p>
 *
 * @author gavin
 * @since 2019-07-15
 */
@TableName("b_replace_card")
public class ReplaceCard extends Model<ReplaceCard> {
    private static final long serialVersionUID = 6068052742539910239L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("dept_id")
    private Integer deptId;

    @TableField("card_time")
    private String cardTime;

    @TableField("reason")
    private String reason;
    @TableField("create_time")
    private String createTime = DateUtil.getNormalTime();

    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getCardTime() {
        return cardTime;
    }

    public void setCardTime(String cardTime) {
        this.cardTime = cardTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ReplaceCard{" + "id=" + id + ", userId=" + userId + ", deptId=" + deptId + ", cardTime=" + cardTime
            + ", reason=" + reason + "}";
    }
}